package com.sl.au.entity;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "sl_crm_saleArea")
public class SaleArea extends Root {

	/** 片区编号 */
	@Column(name = "sAreaCode")
	private String areaCode;
	
	/** 片区名称 */
	@Column(name = "sAreaName")
	private String areaName;
	
	/** 上级部门 */
	@Column(name = "sSuperior")
	private String superior;
	
	/** 上级部门编号 */
	@Column(name = "sSuperiorCode")
	private String superiorCode;
	
	/** 是否废弃*/
	@Column(name = "nIsAbandon")
	private int isAbandon;
	
	/** 部门-片区 */
	@Column(name = "sSuperiorArea")
	private String superiorArea;
	
	/** 建立时间 */
	@Column(name = "dBuildDate")
	@Temporal(TemporalType.TIMESTAMP)
	private Date buildDate;
	
	/**界面中使用，是否选中**/
	@Transient
	private Boolean isSelected;
	
	/** 备注 */
	@Column(name = "sMemo")
	private String memo;

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	/**
	 * 片区名称
	 * 
	 * @return
	 */
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	/**
	 * 上级部门
	 */
	public String getSuperior() {
		return superior;
	}

	public void setSuperior(String superior) {
		this.superior = superior;
	}

	/**
	 * 创建时间
	 * 
	 * @return
	 */
	public Date getBuildDate() {
		return buildDate;
	}

	public void setBuildDate(Date buildDate) {
		this.buildDate = buildDate;
	}
    
	 
	public String getSuperiorArea() {
		return superiorArea;
	}

	public void setSuperiorArea(String superiorArea) {
		this.superiorArea = superiorArea;
	}

	public String getSuperiorCode() {
		return superiorCode;
	}

	public void setSuperiorCode(String superiorCode) {
		this.superiorCode = superiorCode;
	}

	public int getIsAbandon() {
		return isAbandon;
	}

	public void setIsAbandon(int isAbandon) {
		this.isAbandon = isAbandon;
	}

	/**
	 * 备注
	 */
	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Boolean getIsSelected() {
		return isSelected;
	}

	public void setIsSelected(Boolean isSelected) {
		this.isSelected = isSelected;
	}
	
}
